package com.zrrd.javaSEPlus._02_enum;

/**
 * @author WanJl
 * @version 1.0
 * @title Connect
 * @description
 * @create 2023/11/11 17:13
 */
public enum Connect {
    MYSQL() {
        @Override
        public void connection() {

        }
    }, ORACLE() {
        @Override
        public void connection() {

        }
    }, SQLSERVER() {
        @Override
        public void connection() {

        }
    }, SQLITE() {
        @Override
        public void connection() {

        }
    };

    public abstract void connection();
}

class aa {
    public static void main(String[] args) {
        //1.连接数据库
        Connect.MYSQL.connection();
        //2.执行SQL语句
    }
}